list1 = [465,8231,8123485,215,612318,12534,561231561,5631,584,2318564,584,5634,561326,4156,1]

#11. 取出第六个的值
print(list1[5])
#12.判断，如果列表中的值是561231561，则输出：今天你猜对了哦~~~~
if list1[6] == 561231561:
    print("今天你猜对了哦~~~~")
#13.打印这个列表里面所有的偶数
for i in list1:
    if i%2==0:
        print(i)
#2.定义集合，使用for遍历访问元素
a={1,2,3,4,5,6}
for i in a:
    print(i)
#3.定义字符串，使用for遍历访问元素
str="hello,world!"
for i in str:
    print(i)
#4.定义字典，使用for遍历访问元素
dict = {
    '小明':129,
    '小兰':148,
    '小红':89
}
for key,value in dict.items():

    for key, value in dict.items():
        print(f"{key}:{value}")
#5.定义列表，使用for遍历访问元素
list1 = [12,34,56,78,99]
for i in list1:
    print(i)
#6.遍历：{465,84564,5641,21564,1891563,481564,651,"王长帅","王李","李四","王三"}
a = {465,84564,5641,21564,1891563,481564,651,"王长帅","王李","李四","王三"}
print(type(a))
print(a)
for w in a:
    print(w)
#61.使用for循环遍历上面的集合，如果输出到了王长帅，则循环结束
n=list({465,84564,5641,21564,1891563,481564,651,"王长帅","王李","李四","王三"})
for i in n:
    if i == "王长帅":
        break
    print(i)
#7.以上作业，运行的时候使用断点查看代码运行过程
#8.以上作业，需要咱们19期git仓库里面去写，之后使用git命令上传代码。（每个人上传代码，要有一个目录专门存放自己的作业）
#9.对着课件，练习字符串其他的内置方法